package ideamaps.action;

import ideamaps.manager.UserManager;

import com.opensymphony.xwork2.ActionContext;
import com.taillive.core.web.StrutsAction;

public class LogoutAction extends StrutsAction{
	
	private UserManager userManager;

	public void setUserManager(UserManager userManager) {
		this.userManager = userManager;
	}
	
	public String logout(){
		getSession().removeAttribute("sessionUsername");
		getSession().invalidate();
		
		return SUCCESS;
	}

}
